<?php
/**
 * @package		Joomla.Site
 * @subpackage	com_mailto
 * @copyright	Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */


defined('_JEXEC') or die;
// import Joomla view library
jimport('joomla.application.component.view');

class GlycophileViewSearch extends JViewLegacy
{
	function display($tpl = null)
	{
		$searchMode = JRequest::getVar('searchMode', 1);
		$keyword = JRequest::getVar('keyword', '');
		
		if($searchMode == 1){
		
		}elseif($searchMode == 2){
			$tpl = 'sucre';
		}
		
		$data	= $this->get('data');
		$theme	= $this->get('theme');
		$total	= $this->get('total');
		$pagination = $this->get('pagination');

		//echo'<pre>'; print_r($data); echo '</pre>';
 		
		$this->assignRef('searchMode', $searchMode);
		$this->assignRef('keyword', $keyword);
		$this->assignRef('data', $data);
		$this->assignRef('theme', $theme);
		$this->assignRef('total', $total);
		$this->assignRef('pagination', $pagination);

		parent::display($tpl);
	}
}
